package com.bird.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import com.bird.bean.User;
import com.bird.dao.UserDao;
import com.bird.service.UserService;

@Component(value="userService")
public class UserServiceImpl implements UserService{
	private UserDao userDao;
		
	public UserDao getUserDao() {
		return userDao;
	}
	
	@Resource
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void save(User user) {
		userDao.saveUser(user);
	}

	public List<User> findAllUsers() {
		return userDao.findAllUsers();
	}
	
}
